<?php
include_once "xAP-functions/webincludes.php";
	$xmldata=file_get_contents($config["basefolder"]."import/xmltv.xml");
	$xmldata=utf8_encode($xmldata);
	$p = xml_parser_create('UTF-8');
	xml_parser_set_option($p,XML_OPTION_TARGET_ENCODING, "UTF-8");
	xml_parser_set_option($p,XML_OPTION_SKIP_WHITE,1);
	xml_parse_into_struct($p, $xmldata, $vals);
	xml_parser_free($p);
	
	print_r($vals);
?>